<?php



class CategorySpecialEventMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.CategorySpecialEventMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('conf_category_specialevent');
		$tMap->setPhpName('CategorySpecialEvent');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('SPECIALEVENT_CATEGORY_ID', 'SpecialeventCategoryId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignPrimaryKey('SPECIALEVENT_ID', 'SpecialeventId', 'int' , CreoleTypes::INTEGER, 'conf_specialevent', 'ID', true, null);

		$tMap->addForeignPrimaryKey('CATEGORY_ID', 'CategoryId', 'int' , CreoleTypes::INTEGER, 'conf_category', 'ID', true, null);

	} 
} 